all: consumer producer
consumer:test_consumer.cpp ../mqcommon/message.pb.cc ../mqcommon/protocol.pb.cc  ../third/include/muduo/proto/codec.cc
	g++ -g -o $@ $^ -std=c++14 -lgtest -lprotobuf -lsqlite3 -pthread -lmuduo_net -lmuduo_base -lz
producer:test_producer.cpp ../mqcommon/message.pb.cc ../mqcommon/protocol.pb.cc  ../third/include/muduo/proto/codec.cc
	g++ -o $@ $^ -std=c++14 -lgtest -lprotobuf -lsqlite3 -pthread -lmuduo_net -lmuduo_base -lz
.PHONY:clean
clean:
	rm -f consumer producer
# all: init business
# init:client_init.cpp ../mqcommon/message.pb.cc ../mqcommon/protocol.pb.cc  ../third/include/muduo/proto/codec.cc
# 	g++ -g -o $@ $^ -std=c++14 -lgtest -lprotobuf -lsqlite3 -pthread -lmuduo_net -lmuduo_base -lz
# business:client_login.cpp ../mqcommon/message.pb.cc ../mqcommon/protocol.pb.cc  ../third/include/muduo/proto/codec.cc
# 	g++ -o $@ $^ -std=c++14 -lgtest -lprotobuf -lsqlite3 -pthread -lmuduo_net -lmuduo_base -lz
# .PHONY:clean
# clean:
# 	rm -f init business	